package chapter.job3;
public class TestCatMouse {
    public static void main(String[] args) {
        Cat ca = new Cat("汤姆",12,1);
        Mouse mo = new Mouse("耗子",6.5,1);
        if(!((ca.getWeight()>mo.getWeight())&&((ca.getWeight()<mo.getWeight())))){
            System.out.println("猫:"+ca.name+"抓住"+mo.name+"老鼠");
            System.out.println("老鼠战死.猫猫体力上涨");
        }else{
            System.out.println("猫:"+ca.name+"没有抓住"+mo.name+"老鼠");
            System.out.println("老鼠胜利老鼠体力上涨");
        }
    }
}
